{% extends "start.html" %}


{% block extraTitle %}My Quests{% endblock %}
{% block pageTitle %}My Quests{% endblock %}
{% block sectionTitle %}All my quests{% endblock %}


{% block content %}    
    
    {% if logged %}
        {% if my_quests|length <= 0 %}
            <font size="6"><center>Maybe it's time to do some quests.</center></font><br />
            <font size="4">Go to <a href="/quests/">Quests</a>, find activities to gain experience. Maybe it can help you.</font>
        {% else %}

            <table>
                <tr>
                    <td>&emsp;</td>
                    <td><center><strong>-Name-</strong></center></td>                                        
                    <td><center><strong>-Level Required-</strong></center></td>
                    <td><center><strong>-Uhh! $$$ reward-</strong></center></td>
                    <td><center><strong>-Uhh! EXP reward-</strong></center></td>
                    <td><center><strong>-Shhh, don't say to anyone(answer)-</strong></center></td>
                </tr>
                {% for x in my_quests %}
                    <tr>
                        <td><img src="../static/quests/{{x.theactivity.id}}.jpg" width="60" height="60"></td>
                        <td><center>{{ x.theactivity.name }}</center></td>                                            
                        <td><center>{{ x.theactivity.level_required }}.0</center></td>
                        <td><center>$ {{ x.theactivity.money_reward }}</center></td>
                        <td><center>{{ x.theactivity.experience_reward }}</center></td>
                        <td><center><secret>{{ x.theactivity.answer }}<secret></center></td>
                    </tr>
                {% endfor %}
            </table>

        {% endif %}        
    {% else %}
        <font size="9"><center><a href="/login/">Login and take a look to your completed quests!</a></center></font>
    {% endif %}
    
    
{% endblock %}


{% block profile %}
    {% block level %}
        <img src="../static/levels/{{profile.level}}.0.jpg"  width="84" height="80">
    {% endblock %}
    <font size="3">
        <ul>
            <li>EXP: {{ profile.experience }} </li>
            <li>${{ profile.money }}.00 </li>
            <li>Energy :{{ profile.energy }}/{{profile.total_energy}} </li>
        </ul>
    </font>
{% endblock %}